package com.hksj.Intelligentmanagement.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @ClassName SchedulingDTO
 * @Description TODO
 * @Author @陈章
 * @Date 2023/3/30 15:46
 * @Version 1.0
 */
@Data
public class SchedulingDTO extends BaseDTO{

    private  String id;

    @ApiModelProperty(value = "班次名称", required = true)
    @NotBlank(message = "班次名称不能为空", groups = {Save.class, SchedulingDTO.Update.class})
    private String classesName;


    @ApiModelProperty(value = "开始时间", required = true)
    @NotBlank(message = "开始时间不能为空", groups = {Save.class, SchedulingDTO.Update.class})
    private String startTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @NotBlank(message = "结束时间不能为空", groups = {Save.class, SchedulingDTO.Update.class})
    private String endTime;


    @ApiModelProperty(value = "是否启用", required = true)
    @NotNull(message = "状态不能为空", groups = {Save.class, SchedulingDTO.Update.class})
    private int isUsing;


    /**
     * 保存的时候校验分组
     */
    public interface Save {
    }

    /**
     * 更新的时候校验分组
     */
    public interface Update {
    }
}
